import { Entity, Column, PrimaryGeneratedColumn,PrimaryColumn } from 'typeorm';

@Entity('sys_role',{
  comment:"系统角色表"
})
export class Role {
  @PrimaryGeneratedColumn()
  id: number;

  @PrimaryColumn()
  @Column({ default: "" })
  roleid: string;

  @Column({ default: "" })
  rolename: string;

  @Column({ default: "" })
  rolekey: string;

  @Column({ default: "0" })
  status: string;

  @Column({ default: "" })
  remark: string;

  @Column({ default: "" })
  create_time: string;

  @Column({ default: "" })
  update_time: string;

  @Column({ default: true })
  isActive: boolean;
}
